package com.example.demo.sevice.impl;

import com.example.demo.bean.Warehouse;
import com.example.demo.dao.WarehouseDao;
import com.example.demo.sevice.WarehouseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WarehouseImpl implements WarehouseService {

    @Autowired
    private WarehouseDao warehouseDao;

    @Override
    public List<Warehouse> warehouse(int id) {
        return warehouseDao.warehouse(id);
    }

    @Override
    public void insert(Warehouse warehouse) {
        warehouseDao.insert(warehouse);
    }

    @Override
    public void delete(int id) {
        warehouseDao.delete(id);
    }

    @Override
    public void update(Warehouse warehouse) {
        warehouseDao.update(warehouse);
    }
}
